import request from '@/utils/request'

// 写作添加
export function writingAdd(params: any) {
    return request.post({ url: '/announcements.announcements/add', params }, { ignoreCancelToken: true })
}
// 写作编辑
export function writingEdit(params: any) {
    return request.post({ url: '/announcements.announcements/edit', params }, { ignoreCancelToken: true })
}
// 写作删除
export function writingDelete(params: any) {
    return request.post({ url: '/announcements.announcements/delete', params }, { ignoreCancelToken: true })
}

// 写作详情
export function writingDetail(params: any) {
    return request.get({ url: '/announcements.announcements/detail', params })
}

// 写作列表
export function writingLists(params: any) {
    return request.get({ url: '/announcements.announcements/lists', params })
}
